package com.fz.us.admin.company.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 流程简要表
 * Created by ZhuChunXiao on 2017/4/11.
 */
@Entity
@Table(name="sys_processbrief")
public class ProcessBrief  extends CompanyEntity {

    private static final long serialVersionUID = -4613409677128298133L;


    /**
     * 文档归档读者
     */
    private CommonConfig readConfig;
    /**
     * 文档归档编辑者
     */
    private CommonConfig editConfig;
    /**
     * 文档阅览者
     */
    private CommonConfig docConfig;

    /**
     * 关联的实体类名
     */
    private String tableKey;

    public String getTableKey() {
        return tableKey;
    }

    public void setTableKey(String tableKey) {
        this.tableKey = tableKey;
    }




    @OneToOne(cascade=CascadeType.ALL)
    public CommonConfig getReadConfig() {
        return readConfig;
    }

    public void setReadConfig(CommonConfig readConfig) {
        this.readConfig = readConfig;
    }

    @OneToOne(cascade=CascadeType.ALL)
    public CommonConfig getEditConfig() {
        return editConfig;
    }

    public void setEditConfig(CommonConfig editConfig) {
        this.editConfig = editConfig;
    }

    @OneToOne(cascade=CascadeType.ALL)
    public CommonConfig getDocConfig() {
        return docConfig;
    }

    public void setDocConfig(CommonConfig docConfig) {
        this.docConfig = docConfig;
    }


}
